package com.wuxianshen.api;

import java.util.Scanner;

public class Demo02Anonymous {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();

        int num1 = new Scanner(System.in).nextInt();
        System.out.println("输入的是：" + num1);
        methodParam(sc);
        /**
         * 匿名对象
         */
        methodParam(new Scanner(System.in));
        Scanner sc1 = methodReturn();
        int i = sc1.nextInt();
        System.out.println("输入的是：" + i );
    }

    public static void methodParam(Scanner sc){
        int num = sc.nextInt();
        System.out.println("输入的是：" + num);
    }
    public static Scanner methodReturn(){
        return new Scanner(System.in);
    }
}
